package com.design.strategy;

import com.design.strategy.service.impl.FlyWithWings;
import com.design.strategy.service.impl.Quack;

/**
 * @author zhengzihong
 * @version 1.0.0
 * @date 2018/9/8
 * @Description
 */
public class MallardDuck extends Duck {


    public MallardDuck(){
        this.quackBehavior = new Quack();
        this.flyBehavior = new FlyWithWings();
    }

    /**
     * 展示类
     */
    public void display(){
        System.out.println("I am MallardDuck!");
    }
}
